package com.by.token;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * date 2025/2/10 14:13
 * author bjj
 * decoration
 * version 1.0
 * since jdk11
 */
@NoArgsConstructor
public enum ValidResult {
    INVALID(1, "token无效"), EXPIRE(2, "token过期"), VALID(3, "token有效");
    int code;
    String msg;

    private ValidResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String toString() {
        return this.msg;
    }
}
